<!DOCTYPE html>
<html lang="cs"><head><meta charset="utf-8"><title>Carnegie Finances Services</title>
        <link rel="shortcut icon" href="/favicon.ico"><link rel="apple-touch-icon" href="/apple-touch-icon.png"><link rel="stylesheet" href="css/main.css" media="screen,projection">
        <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
        <script src="../js/jquery.mousewheel-3.0.4.pack.js"></script>
        <script src="../js/jquery.fancybox-1.3.4.pack.js"></script>
        <script src="js/custom.js"></script><!--[if lt IE 9]>
        <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
        <![endif]--></head><body>            
        
        <header><div class="wrap">
                <div id="header">   
                    <a id="logo" href="login.do" title="Asterisk">Carnegie<span>*</span>Finances</a>
                    <%
                        if (request.getSession().getAttribute("user") == null && 
                              request.getSession().getAttribute("employee") == null){
                    %>
                    <div class="col1-3">
                        
                    </div>
                    <div id="header_form">
                            
                            <form method="post" name="login" action="login.do">
                                <label for="userName">Username:</label> <input type="text" value="${form.userName}" id="userName" name="userName" class="required input_field" />
                                <select name="type">
					<option value="user">User</option>
					<option value="employee">Employee</option>
                                </select>
                                <br/><label for="password">Password:  </label><input type="password" id="password" name="password" class="required input_field" />
                                
                                <input type="submit" class="submit_btn" name="Login" id="submit" value="Login" />
                                <jsp:include page="error-list.jsp"/>
                            </form>
                    </div></div>
                     <hr><div id="intro">
                    <h1>Welcome to Carnegie Finances Services</h1>
                    <h2>your number one online services</h2>
                    
                    <p>Pittsburgh premier Financial Adviser platform.</p>
                    
                    <a href="./" class="button" title="Contact Us"><span>Contact Us Now</span></a>
                     </div>
                    <%
                        }else{
                    %>
                     <hr><nav><ul><li>
                               <a href="" title="Home">
                                    <strong>Welcome</strong>
                                    <span>${user.username}</span>
                                </a>
                            </li>
                            <li>
                                <a href="changePassword.do" title="Change Password">
                                    <strong>Change Password</strong>
                                    <span>Enter new password</span>
                                </a>
                            </li>
                            <li>
                                <a href="logout.do" title="Log Out">
                                    <strong>Log out</strong>
                                    <span>End current session</span>
                                </a>
                            </li>
                         </ul>
                     </nav></div>
                    <%        
                        }
                    %>
               
                